package com.gl.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * PageController负责呈现项目中所有的页面
 * @author Administrator
 */
@Controller
@RequestMapping("/")
public class PageController {

	/**返回后台首页页面*/
	@RequestMapping("doIndexUI")
	public String doIndexUI() {
		return "starter";
	}
	/**返回后台分页对应的页面*/
	@RequestMapping("doPageUI")
	public String doPageUI() {
		return "common/page";
	}
	/**返回某个模块的UI页面(rest架构编码风格)*/
	@RequestMapping("{module}/{ui}")
	public String doBackModuleUI(@PathVariable String ui) {
		return "sys/"+ui;
	}
	/**(前端)返回某个模块的UI页面(rest架构编码风格)*/
	@RequestMapping("{ui}")
	public String doModuleUI(@PathVariable String ui) {
		return ui;
	}
}



